//
//  MapViewController_iPad.h
//  Tazama NGO
//
//  Created by jsheriff on 3/2/11.
//  Copyright 2011 The MITRE Corporation. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "FieldObservationEditViewController.h"
#import "SearchResultsViewController_iPad.h"

@interface MapViewController_iPad : UIViewController <UIPopoverControllerDelegate, UISearchBarDelegate, MKMapViewDelegate, FieldObservationEditViewControllerDelegate, UIAlertViewDelegate, SearchResultsDelegate> {
    UIPopoverController *popoverController;
    UIToolbar *toolbar;
	MKMapView *mapView;
	BOOL centerOnUser;
	BOOL initialUserLocation;
    UISearchBar *searchBar;
    BOOL longPressActive;
    FieldObservationEditViewController *fieldObservationEditViewController;
    SearchResultsViewController_iPad *searchResultsViewController;
    UIPopoverController *searchResultsPopoverController;
}

@property (nonatomic, retain) UIPopoverController *popoverController;
@property (nonatomic, retain) FieldObservationEditViewController *fieldObservationEditViewController;
@property (nonatomic, retain) SearchResultsViewController_iPad *searchResultsViewController;
@property (nonatomic, retain) UIPopoverController *searchResultsPopoverController;
@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
@property (nonatomic, retain) IBOutlet MKMapView *mapView;
@property (nonatomic, retain) IBOutlet UISearchBar *searchBar;
@property (nonatomic, assign) BOOL centerOnUser;
@property (nonatomic, assign) BOOL initialUserLocation;

-(IBAction)settingsBtnClick:(id)sender;
-(IBAction)currLocClick:(id)sender;

-(void)displayMessageOnMap:(NSNotification *)notification;

@end
